<script setup lang="ts">
// 定义组件参数
defineProps({
  showTileState: {
    type: Boolean,
    default: false,
  },
  item: {
    type: Object,
    required: true,
  },
})
</script>
<template>
  <div class="ryCard">
    <!--经纪人奖励-->
    <RouterLink
      v-if="item.corporateCultureTypeId == 10000"
      :to="{
        path: '/rewardDetail',
        query: { dbid: item.dbid },
      }"
      class="router-link-active"
    >
      <div class="cardContent">
        <div class="cardContentImage">
          <img :src="item.picture" alt="" />
        </div>
        <div class="cardContentRight">
          <div class="contentTile">{{ item.title }}</div>
          <div class="contentTime">
            <label>发布时间：</label>
            <span>{{ item.realessTime }}</span>
          </div>
          <div class="contentPrice">
            <label>奖励金额:</label>
            <span class="price">{{ item.description }}</span>
          </div>
        </div>
      </div>
    </RouterLink>
    <RouterLink
      v-else
      :to="{
        path: '/newDetail',
        query: { dbid: item.dbid },
      }"
      class="router-link-active"
    >
      <div class="cardContent">
        <div class="cardContentImage">
          <img :src="item.picture" alt="" />
        </div>
        <!--常规新闻-->
        <div class="cardContentRight">
          <div class="contentTile">
            <van-text-ellipsis rows="1" :content="item.title" />
          </div>
          <van-text-ellipsis rows="3" :content="item.description" class="newDes" />
        </div>
      </div>
    </RouterLink>
  </div>
</template>
<script lang="ts" setup></script>
<style lang="css" scoped></style>
